///////////////////////////////////////////////////////////////////////////////
// Project: Hoyo Client Game
//
// hy_team_logic.h
// Created: 2013-7-15
// Author: Like Cheng
///////////////////////////////////////////////////////////////////////////////
#pragma once
#include "hy_includes.h"

class hy_team_data;
typedef std::map< int, hy_team_data* > hy_team_data_map;

class hy_team_logic : public hy_object
{
public:
	hy_team_logic();
	virtual ~hy_team_logic();

	static hy_team_logic*		instance();
	static void					purge_instance();
public:
	hy_team_data*				get_team_data_by_id( int id );
	bool						add_team_data( hy_team_data* );

	hy_team_data*				get_team_data_by_player_id( int player_id );
private:
	hy_team_data_map			m_team_data_map;
};